import request from '@/utils/request'

// 查询企业规模列表
export function listCompanyclassification(query) {
  return request({
    url: '/system/companyclassification/list',
    method: 'get',
    params: query
  })
}

// 查询企业规模详细
export function getCompanyclassification(id) {
  return request({
    url: '/system/companyclassification/' + id,
    method: 'get'
  })
}

// 新增企业规模
export function addCompanyclassification(data) {
  return request({
    url: '/system/companyclassification',
    method: 'post',
    data: data
  })
}

// 修改企业规模
export function updateCompanyclassification(data) {
  return request({
    url: '/system/companyclassification',
    method: 'put',
    data: data
  })
}

// 删除企业规模
export function delCompanyclassification(id) {
  return request({
    url: '/system/companyclassification/' + id,
    method: 'delete'
  })
}

// 企业规模状态修改
export function changeCompanyclassificationStatus(id, data) {
  return request({
    url: '/system/companyclassification/changeStatus',
    method: 'put',
    data: data
  })
}
